package com.youbug.kefu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.youbug.kefu.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 消息表
 * </p>
 *
 * @author youbug
 * @since 2023-01-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="Message对象", description="消息表")
public class Message extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "会话表主键")
    private Long chatId;

    @ApiModelProperty(value = "消息类型 text，image，audio，radio, json")
    private String type;

    @ApiModelProperty(value = "消息内容")
    private String content;

    @ApiModelProperty(value = "发送方agent，client")
    private String sender;

    @ApiModelProperty(value = "发送方id")
    private Long senderId;

    @ApiModelProperty(value = "发送方名")
    private String senderName;


}
